import React from 'react'
const { $fn, $Lazy } = window
// ===================================================================== private template
const Menu = $Lazy.load(()=>import('#frame/menu'))
// ===================================================================== 客服系统
class Index extends React.Component{
	state = {
		data:[]
	}
	
	skip = { to: 'service-system/late-record' }
	
	child = [
		// 客户迟发记录
		{
			id: 'khcfjl', 
			parent: '/service-system/late-record',
			children: [
				$fn.menu.patient_detail, 	// 修改资料
				$fn.menu.preview_report 	// 预览报告单
			]
		},
		// 报告单管理
		{
			id: 'bgdgl', 
			parent: '/service-system/report-manage',
			children: [
				{ title: '查看报告单', 	path: 'check-report', component:'service-system/report-manage/check-report' },
				// 新增修改基本资料 20200927 耿琰
				{ title: '修改基本资料', 	path: 'change-info', component:'service-system/report-manage/change-info' },
				$fn.menu.preview_report 	// 预览报告单
			]
		},
		// 报告单终止记录
		{
			id: 'bgdzzjl', 
			parent: '/service-system/report-manage',
			children: [
				$fn.menu.preview_audit_report,		// 预览并批准报告单
			]
		},
		// 信息修改
		{
			id: 'xxxg', 
			parent: '/service-system/information-changes',
			children: [
				$fn.menu.patient_detail, 	// 修改资料
				$fn.menu.preview_report 	// 预览报告单
			]
		},
	]
	
	componentDidMount(){
		$fn.getMenu.call(this, 'kfxt', this.child)
	}
	
	render(){
		return <Menu data={this.state.data} skip={ this.skip } />
	}
}

export default Index